package service.impl;

import POJO.Invitation;
import mapper.InvitationMapper;
import org.springframework.stereotype.Service;
import service.InvitationService;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 任 on 2019/2/20.
 */
@Service("invitationService")
public class InvitationServiceImpl implements InvitationService {
    @Resource
    private InvitationMapper invitationMapper;

    public List<Invitation> InvitationList(String title, int currPageNo, int pageSize) {

        return invitationMapper.InvitationList(title,currPageNo,pageSize);
    }

    @Override
    public int titltList(String title) {
        return invitationMapper.titltList(title);
    }

    @Override
    public int delId(int id) {
        return invitationMapper.delId(id);
    }
}
